#ifndef BIRD_H
#define BIRD_H
#include "cocos2d.h"
#include "Global.h"
enum BIRD_TYPE
{
	LIVE,
	DEATH,
};
enum BIRD_COLOR
{
	BLUE,
	ORANGE,
	PINK,
	RED,
	WHITE,
	YELLOW,
	PURPLE,
	GREEN,
};

class CBird : public cocos2d::CCSprite, public CCTargetedTouchDelegate 
{
	BIRD_COLOR		m_tColor;
	BIRD_TYPE		m_tType;
	float			m_flocalTime;
	float			m_fInterval;
public :
	CBird();
	virtual ~CBird();
	static CBird* init(BIRD_TYPE newType,BIRD_COLOR newColor,float interval);
	void setBird(BIRD_TYPE newType,BIRD_COLOR newColor);
	void setType(BIRD_TYPE type);
	void setColor(BIRD_COLOR color);
	int GetColor();
	bool isExplosion;
	bool canCheckExplosion;
	void playAnimation();
	void UpdateAnimation(float dt);
	int timer;
	bool m_canUpdate;
};

#endif